include $(top_srcdir)/common.mk

AM_CPPFLAGS += -I$(top_srcdir)/common  -I$(top_srcdir)/lib \
		-I$(top_srcdir)/api -I./ 	

sbin_PROGRAMS = echkpnt erestart

echkpnt_SOURCES = echkpnt.c echkpnt.lib.c echkpnt.lib.h 

echkpnt_LDADD = ../lib/.libs/libqpbase.a ../common/.libs/libtools.a ../api/.libs/libqpapi.a \
	-lm -lnsl -lyaml

if ENABLE_TIRPC
echkpnt_LDADD += -ltirpc
endif

erestart_SOURCES = erestart.c echkpnt.lib.c echkpnt.lib.h

erestart_LDADD = ../lib/.libs/libqpbase.a ../common/.libs/libtools.a  ../api/.libs/libqpapi.a\
	-lm -lnsl -lyaml

if ENABLE_TIRPC
erestart_LDADD += -ltirpc
endif

sbin_SCRIPTS = echkpnt.default erestart.default
